package com.ziq.zcamp.bean.place

import com.ziq.zcamp.bean.coupon.CouponCampOnline
import com.ziq.zcamp.bean.post.ImageInfo
import com.ziq.zcamp.bean.product.PlaceProduct
import com.ziq.zcamp.proguard.ProguardKeep

class PlaceListItem : ProguardKeep {
    var id : Int? = null
    var name : String? = null
    var location_addr : String? = null
    var longitude : String? = null
    var latitude : String? = null
    var distance : Long? = null
    var images : List<ImageInfo>? = null
    var exist_merchant : Boolean? = null//是否营地已入驻
    var exist_selling_commodity : Boolean? = null//是否营地存在销售中的商品
    var exist_vr : Boolean? = null//是否营地存在vr
    var tag : PlaceTag? = null//营地标签
    var coupon_tag : CouponCampOnline? = null//优惠券标签
    var score : Int ?= null
    var rank : PlaceRank?= null //排名

    var is_collect : Boolean? = null //是否收藏
    var commodity_info : List<PlaceProduct>? = null //是否收藏

    override fun equals(other: Any?): Boolean {
        if(other is PlaceListItem){
            return other.id == this.id
        }
        return super.equals(other)
    }

    override fun hashCode(): Int {
        var result = id.hashCode()
        return result
    }
}